/**
 * Created by IntelliJ IDEA.
 * User: Simon
 * Date: 14.10.2009
 * Time: 5:23:36
 * To change this template use File | Settings | File Templates.
 */
import org.jsecurity.SecurityUtils
import rowingmanager.domain.User
import rowingmanager.domain.JsecUserRoleRel
import rowingmanager.domain.JsecRole

public class CustomTagLib {

  static namespace = 'custom'

  def userService

  def hasRole = { attrs ->
    String name = attrs['name']
    if(userService.hasRole(name)){
        out << 'has'
    }
    else out << 'nope'
  }
  def printRole = { 
     out << userService.role()
  }


}

